Developer Documentation

QuickTime 4 API Documentation

3D Graphics Programming with QuickDraw 3D 1.5.4

Previous | QD3D Book | Overview | Chapter Contents | Next |

Orthographic Cameras

Labels

ASCII
OrthographicCamera
Binary
orth ( = 0x6F727468 )

Data Format

Float32             left
Float32             top
Float32             right
Float32             bottom
left
The x coordinate (in the camera's coordinate system) of the upper left corner of the front face of the view volume; or, the distance from the center of the camera lens (that is, the view rectangle) to the left side of the lens.
top
The y coordinate (in the camera's coordinate system) of the upper left corner of the front face of the view volume; or, the distance from the center of the camera lens (that is, the view rectangle) to the top side of the lens.
right
The x coordinate (in the camera's coordinate system) of the lower right corner of the front face of the view volume; or, the distance from the center of the camera lens (that is, the view rectangle) to the right side of the lens.
bottom
The y coordinate (in the camera's coordinate system) of the lower right corner of the front face of the view volume; or, the distance from the center of the camera lens (that is, the view rectangle) to the left side of the lens.

Data Size

16

Description

An orthographic camera is a parallel projection camera that employs an orthographic projection to obtain its image. The direction of projection is the opposite of the camera vector (that is, location - pointOfInterest ), the projection plane is the near clipping plane, and the projection is thus along a normal to the projection plane. The origin of the projection plane is the point at hither (camera vector); if the absolute values of the fields top and bottom are equal, and the absolute values of the fields left and right are equal, then the origin of the projection plane is at the center of the front face of the view volume.

Parent Hierarchy

Shared, shape, camera.

Parent Objects

View hints (sometimes).

Child Objects

Camera placement, camera range, camera view port (optional). If a camera does not have one of these child objects, then it should be assigned the default values specified in the section on that child object.

Example

OrthographicCamera (
    -10
    -10
    10
    10
)

© 1997 Apple Computer, Inc.

Previous | QD3D Book | Overview | Chapter Contents | Next |